package com.qiudaozhang.jblog.model;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @author 邱道长
 * 2018/12/11 16:50
 * 定义博客模型
 */
@Table(name = "article")
public class Article  implements Serializable {


    private static final long serialVersionUID = 1755026390091847381L;
    //    @Id
    @Id
    private Integer articleId;

    /**
     * 标题
     */
    private String title;

    /**
     * 简介
     */
    private String description;

    /**
     * 文章主题内容
     */
    private String content;

    /**
     * 文章创建时间
     */
    private Date createTime;

    /**
     * 文章最后更新时间
     */
    private Date updateTime;

    /**
     * 文章状态
     * 1 发布
     * 0 草稿
     */
    private Integer status;

    /**
     * 文章编写用户的id
     */
    private String userId;

    /**
     * 文章分类id
     */
    private Integer categoryId;


    public Integer getArticleId() {
        return articleId;
    }

    public void setArticleId(Integer articleId) {
        this.articleId = articleId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }
}
















